home *** CD-ROM | disk | FTP | other *** search
Text File | 2001-04-10 | 1.6 KB | 64 lines | [TEXT/ToyS] |
- tell application "iView PhotoMover"
-
- -- Save current settings
- set klog to get the Log
- set ksound to get the Sound
- set kdetails to get the Details
- set khost to get the Host
-
- --set the Details to true -- Set Details to true for tracking down problems.
- set the Details to false
-
- (* function samples *)
-
- -- Get a file to upload...
- set afile to choose file
- activate
-
- -- Host ID's.
- -- 0 = PhotoPoint
- -- 1 = ClubPhoto -- supports Picture Description and Album Selection
- -- 2 = zing
- -- 3 = ImageStation
- -- 4 = NikonNet
- -- 5 = FotoTime -- supports Picture Description and Album Selection
-
- set the Log to true -- save result to log file...
-
- repeat with hostid from 1 to 1
- set the Host to hostid
- try
-
- -- set timeout to some large number
- with timeout of 3600 seconds -- how long to upload? 1 hour?
-
- -- upload the image to the currently set site.
-
- -- upload an image to default album.
- open afile
-
- -- open afile to album "iview" and caption "test image description".
- open afile into album "iview" with description "test image description"
-
- -- Use currently selected album and upload with a caption.
- -- open afile with description "test image description"
-
- -- Note: Currently FotoTime and ClubPhoto site have support for descriptions.
- -- This will be added as other site vendors help us add this feature.
- end timeout
-
- on error msg
- display dialog msg & return & "Uploading to host index " & hostid
- end try
- end repeat
-
- -- restore the settings
- set the Log to klog
- set the Sound to ksound
- set the Details to kdetails
- set the Host to khost
-
- -- quit
-
- end tell
-